package com.tanhua.server.service;

import com.tanhua.model.domain.UserInfo;
import com.tanhua.model.mongo.CommonLikeUser;
import com.tanhua.model.vo.PageResult;
import com.tanhua.model.vo.UserInfoVo;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface UserInfoService {

    //登录完善资料
    void loginRegInfo(UserInfo userInfo);

    //修改头像,根据id
    void updateHead(MultipartFile headPhoto, Long id) throws IOException;

    //查询用户或自己详情信息
    UserInfoVo findById(Long userID);

    //修改用户详情信息
    void update(UserInfo userInfo);

    //查询喜欢,相互喜欢,粉丝,访客
    ResponseEntity queryLikeList(Integer type, Integer page, Integer pagesize, String nickname);

    //粉丝-喜欢
    ResponseEntity likeFans(Long targetUserId);

    //取消喜欢
    ResponseEntity removeLike(Long targetUserId);
}
